import Vue from 'vue'
import VueRouter from 'vue-router'
import xinWen from '@/views/xinWen'
import tiYu from '@/views/tiYu'
import zhuYe from '@/views/zhuYe'
import tiYuGn from '@/second/tiYuGn'
import tiYuGw from '@/second/tiYuGw'
import tiYuZy from '@/second/tiYuZy'
Vue.use(VueRouter)

const routes = [
    { path: '/xinWen', component: xinWen },
    { path: '/tiYu', component: tiYu ,
    children:[
      {
        path: '/tiYuGn', component: tiYuGn ,
      },
      {
        path: '/tiYuGw', component: tiYuGw ,
      },
      {
        path: '/tiYuZy', component: tiYuZy ,
      },
    ]

   },
    { path: '/zhuYe', component: zhuYe },
]

const router = new VueRouter({
    routes,
})

export default router
